09. CodePipeline

Codepipeline

CodePipeline

Continuous Delivery: Automating the preparation of code for release

FSND C4 L2 A09 What Is Contiuous Delivery

continuous delivery

Continuous Delivery

  • Used for small incremental releases or frequent releases
  • Automates code compilation, testing and packaging
  • May involve human QA before final release or automated release to production

continuous delivery

Which is an advantage of continuous delivery?

SOLUTION: Customer feedback can happen sooner if releases are more frequent

CodePipeline

CodePipeline: Continuous delivery as a managed service.

FSND C4 L2 A10 CodePipeline

CodePipeline recap

CodePipeline

  • Controls the release process through user defined pipelines
  • Pipelines are created either through the CodePipeline console or using awscli
  • Pipelines watch a source code repository, changes to this repository trigger pipeline action
  • Pipelines are made up of stages
  • Each stage consists of one or more actions
  • There are actions to define the source repository, as well as instructions for testing, building, deploying and options for approval
  • Pipelines can be managed and viewed in the CodePipeline console

Example Pipeline

An example pipeline

An example pipeline

CodePipeline Quiz

A CodePipeline stage is limited to a single action

SOLUTION: False

CodePipeline Quiz

There are CodePipeline actions designed to

SOLUTION:
  • Define a source code repository
  • Define how to run tests
  • Define how to deploy
  • Define a build process
  • Define an approval process

Code Pipeline Resources

Additional Information

You can find additional information about CodePipeline here .
For more information on CloudFormation templates see: Working with CloudFormation Templates .

CloudFormation Template

When you create a CodePipeline pipeline you should do so in the context of a CloudFormation stack. CloudFormation is a service for managing the creation of Amazon resources. Resources created together are grouped in a stack. This makes it easy to see related resources in the CloudFormation console.
CloudFormation stacks are defined in template files. These files define all of the resources for your stack. CodeFormation templates contain sections for resources used in a stack and parameters to be set when the stack is created. A great way to get started with CloudFormation is to use one of the sample templates . There are instructions for trying a sample template here . This walks you through using a sample template to setup and tear down the resources necessary to run a wordpress site.